<div class="admin-content" id="accordion">
	<div class="am-cf am-padding">
		<div class="am-fl am-cf">
			<strong class="am-text-primary am-text-lg">推送</strong> / <small>Push</small>
		</div>
	</div>


	<div class="am-g">
		<div class="am-u-sm-12 am-u-md-6">
			<div class="am-btn-toolbar">
				<div class="am-btn-group am-btn-group-xs">
					<button data-ng-click="ToAddPush();" type="button"
						data-am-offcanvas="{target: '#push-detail'}"
						class="am-btn am-btn-default">
						<span class="am-icon-plus"></span> 新增
					</button>
				</div>
			</div>
		</div>
	</div>
	<hr />
	<table class="am-table am-table-striped am-table-hover table-main">
		<thead>
			<tr>
				<!-- <th class="table-check"><input type="checkbox" /></th> -->
				<th>ID</th>
				<th>标题</th>
				<th>内容</th>
				<th>网址</th>
				<th>创建时间</th>
			</tr>
		</thead>
		<tbody>
			<tr data-ng-repeat="version in messages">
				<td><span data-ng-bind="version.id"></span></td>
				<td><span data-ng-bind="version.title"></span></td>
				<td><span data-ng-bind="version.content"></span></td>
				<td><span data-ng-bind="version.website"></span></td>
				<td>{{ version.createTime | date : 'yyyy-MM-dd HH:mm:ss' }}</td>
			</tr>
		</tbody>
	</table>

</div>
<!-- 增加 推送  -->
<div id="push-detail" name="{{ open }}" class="am-offcanvas"
	style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
	<div style="background: white; width: 50%;"
		class="am-offcanvas-bar am-offcanvas-bar-flip am-offcanvas-bar-overlay">
		<!--content start  -->
		<div class="am-offcanvas-content">
			<form class="am-form am-form-horizontal" data-am-validator>
				<fieldset>
					<legend>增加推送</legend>



					<div class="am-form-group">
						<label class="am-u-sm-3 am-form-label">标题：</label>
						<div class="am-u-sm-9">
							<input type="text" placeholder="输入标题/ Name"
								data-ng-model="npush.title">
						</div>
					</div>
					<div class="am-form-group">
						<label for="admin-address" class="am-u-sm-3 am-form-label">网址：</label>
						<div class="am-u-sm-9">
							<input type="text" id="admin-address"
								placeholder="请输入地址/ http或者https开头"
								data-ng-model="npush.website">
						</div>
					</div>
					<div class="am-form-group">
						<label for="admin-address" class="am-u-sm-3 am-form-label">内容：</label>
						<div class="am-u-sm-9">
							<textarea class="text" rows="5" id="admin-address"
								placeholder="请输入内容" ng-model="npush.content"></textarea>
						</div>
					</div>


					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<button type="button" class="am-btn am-btn-primary"
								data-ng-click="addPush(npush);">保存</button>
							<button type="button" class="am-btn am-btn-primary"
								data-ng-click="closeEditUI();">关闭</button>
						</div>
					</div>
				</fieldset>
			</form>
		</div>
	</div>
</div>